# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiocache
_pkgname=aiocache
pkgver=0.12.3
_pyver=3.13
pkgrel=1
pkgdesc='Asyncio cache supporting multiple backends (memory,redis and memcached).'
arch=('any')
url='https://pypi.org/project/aiocache/#files'
license=('BSD3')
depends=('python' 'python-msgpack' 'python-ujson')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/a/aiocache/$_pkgname-$pkgver.tar.gz")
sha512sums=('f1caabcc994564255dcef7db31b337c487b4f6add1f9c3256a49e43a1d35210e72e3fcc6ca5e535c92a5d9ea7fed0dfca55d495b0dafae5fa68ffea8e1d9ebc3')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

